package com.ltx.service;

import com.ltx.dao.KitMapper;
import com.ltx.pojo.Kit;

import java.util.List;

public class KitServiceImpl implements KitService{

    //引入dao层
    private KitMapper kitMapper;
    public void setKitMapper(KitMapper kitMapper) {
        this.kitMapper = kitMapper;
    }

    @Override
    public List<Kit> selectAllKit() {
        return kitMapper.selectAllKit();
    }

    @Override
    public Kit queryById(int kitId) {
        return kitMapper.queryById(kitId);
    }

    @Override
    public int addKit(Kit kit) {
        return kitMapper.addKit(kit);
    }

    @Override
    public int updateKit(Kit kit) {
        return kitMapper.updateKit(kit);
    }

    @Override
    public int returnKit(Kit kit) {
        return kitMapper.returnKit(kit);
    }


}
